package com.design_pattern.command;

public class CommandImpl extends Command {
    private StringBuilder str;

    public CommandImpl(StringBuilder str) {
        this.str = str;
    }

    @Override
    public void doIt() {
        str.append("go!");

    }

    @Override
    public void undo() {
        str.delete(str.length() - 3, str.length());

    }
}
